package com.easypay.bean;

import lombok.Data;

import java.io.Serializable;

public class PayNotify implements Serializable {

    /**
     * data : {"finRetcode":"00","appendRetcode":"TRADE_SUCCESS","appendRetmsg":"交易支付成功","tradeCode":"WAJS1","pcTrace":"2021082622001484081426856022","outTrace":"2121430732879733854208","payerId":"2088402489184084","payerOtherInfo":"152***@sina.cn","timeEnd":"20210826112654","settleAmt":1,"payerAmt":1,"patnerSettleFlag":"0"}
     * sysRetcode : 000000
     * sysRetmsg : success
     * appendData : {"payDetail":{"aliFundBillList":[{"fund_channel":"ALIPAYACCOUNT","amount":"0.01"}]},"disCount":{}}
     */

    private DataBean data;
    private String sysRetcode;
    private String sysRetmsg;
    private AppendDataBean appendData;

    @Data
    public static class DataBean implements Serializable {
        /**
         * finRetcode : 00
         * appendRetcode : TRADE_SUCCESS
         * appendRetmsg : 交易支付成功
         * tradeCode : WAJS1
         * pcTrace : 2021082622001484081426856022
         * outTrace : 2121430732879733854208
         * payerId : 2088402489184084
         * payerOtherInfo : 152***@sina.cn
         * timeEnd : 20210826112654
         * settleAmt : 1
         * payerAmt : 1
         * patnerSettleFlag : 0
         */

        private String finRetcode;
        private String appendRetcode;
        private String appendRetmsg;
        private String tradeCode;
        private String pcTrace;
        private String outTrace;
        private String payerId;
        private String payerOtherInfo;
        private String timeEnd;
        private int settleAmt;
        private int payerAmt;
        private String patnerSettleFlag;
    }

    @Data
    public static class AppendDataBean implements Serializable {
        /**
         * payDetail : {"aliFundBillList":[{"fund_channel":"ALIPAYACCOUNT","amount":"0.01"}]}
         * disCount : {}
         */

        private PayDetailBean payDetail;
        private DisCountBean disCount;

        @Data
        public static class PayDetailBean implements Serializable {
            @Data
            public static class AliFundBillListBean implements Serializable {
            }
        }

        @Data
        public static class DisCountBean implements Serializable {
        }
    }
}
